home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / space_runner_2.swf / scripts / frame_86 / PlaceObject2_86_323 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2007-01-12  |  295b  |  18 lines

  1. onClipEvent(enterFrame){
  2.    if(kolla == 1)
  3.    {
  4.       this.play();
  5.       if(this._x < 161)
  6.       {
  7.          this._x += 1;
  8.          riktning = 1;
  9.       }
  10.       if(273 < this._x)
  11.       {
  12.          this._x -= 1;
  13.          riktning = -1;
  14.       }
  15.       this._x += 2 * riktning;
  16.    }
  17. }
  18.